package com.bwsoft.admin.domain;

// default package

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 标准POJO
 * 
 * @author Cui Bowen
 */
@Entity
@Table(name = "rp_report")
public class Report implements java.io.Serializable {

	private static final long serialVersionUID = 4827773402834546022L;
	@Id
	@Column(name = "id")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer reportId;
	private String reportName;
	private String reportNumber;
	private String sampleName;
	private String scrqph;
	@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
	@JoinColumn(name = "fileid")
	private File file;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "compID")
	private Account danwei;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "uploader")
	private Account shangchuan;
	private Date addTime;

	public Integer getReportId() {
		return reportId;
	}

	public void setReportId(Integer reportId) {
		this.reportId = reportId;
	}

	public String getReportName() {
		return reportName;
	}

	public void setReportName(String reportName) {
		this.reportName = reportName;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public Account getDanwei() {
		return danwei;
	}

	public void setDanwei(Account danwei) {
		this.danwei = danwei;
	}

	public Account getShangchuan() {
		return shangchuan;
	}

	public void setShangchuan(Account shangchuan) {
		this.shangchuan = shangchuan;
	}

	public String getReportNumber() {
		return reportNumber;
	}

	public void setReportNumber(String reportNumber) {
		this.reportNumber = reportNumber;
	}

	public String getSampleName() {
		return sampleName;
	}

	public void setSampleName(String sampleName) {
		this.sampleName = sampleName;
	}

	public String getScrqph() {
		return scrqph;
	}

	public void setScrqph(String scrqph) {
		this.scrqph = scrqph;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

}